#ifndef __MYLIST_H__
#define __MYLIST_H__

#define	LEFT	1
#define	UP		2
#define RIGHT	3
#define DOWN	4

struct SNAKE
{
	RECT m_rt;
	SNAKE *pLast;
	SNAKE *pNext;
};

SNAKE *CreateList(int nX, int nY);
void MoveSnake(SNAKE *pHead, int nFlag);
void AddNode(SNAKE **ppHead, int nFlag);
void ShowList(HDC hdc, SNAKE *pHead);
void KillSnake(SNAKE **ppHead);
bool CheakSnake(SNAKE *pHead, RECT rt);

#endif